home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 741 / sizer / sizer.doc < prev    next >
Text File  |  1995-03-18  |  7KB  |  182 lines

  1.  
  2.  
  3.                               S I Z E R    D O C
  4.  
  5.  
  6.                                  Gérard CORNU
  7.  
  8.                                      ;-)
  9.  
  10.                       (version 0.20 , September 4th 1992)
  11.  
  12.  
  13.       Sizer is ©1992 Gérard Cornu, but freely redistributable. When
  14.       re-distributing don't forget to include this unmodified doc file.
  15.       And don't charge more tan the cost of an AmigaLib disk from 
  16.       Fred FISH. 
  17.  
  18.       This program cannot be used for commercial purposes, or included       
  19.       on magasine's cover disks without the written permission of the author.
  20.                                                                              
  21.       Fred Fish is obviously allowed to include it in its one and only       
  22.       AmigaLibDisk library.
  23.  
  24.  
  25. What is sizer ?
  26. ~~~~~~~~~~~~~~~
  27.  
  28.       Sizer is a quick and small  CLI  utility for getting the size of
  29.       any devices,  directories  or  files.  It   accepts  any  number
  30.       of arguments. (Well, it's supposed to!) 
  31.       
  32.       I have been using it in 2.04 only but it doesn't use (as yet...)
  33.       any 2.04 features, so this beta version should also work in 1.3.
  34.        
  35.  
  36. How to use it?
  37. ~~~~~~~~~~~~~~
  38.  
  39.       As I said earlier it's a CLI (Shell) thingy. 
  40.  
  41.       The format is:
  42.  
  43.          sizer [-n] {< device | directory | file >}
  44.  
  45.       The -n option is for no display of the filenames being sized. 
  46.  
  47.       This gives much faster results.
  48.  
  49.       examples:
  50.  
  51.          sizer dh0:
  52.  
  53.          sizer -n MyDirectory
  54.          
  55.          sizer tools/mytooldir
  56.  
  57.          sizer ram:  sys:c  another_file  another_device:   etc...
  58.  
  59.       Don't use the '/' at the end of a directory name, but on the 
  60.       other hand, you MUST use ':' at the end of a device or assigned 
  61.       directory.
  62.  
  63.       It is best used with a directory utility. Even better with one
  64.       which accepts multiple arguments.  'Pity  DirWork don't, at least
  65.       not in version 1.51, the one I currently use. SID 2.0 very probably
  66.       has already got such a thing, with the 'bytes' button. 
  67.       
  68.       I shall give you the settings I have used to configure it with 
  69.       DirWork 1.51:
  70.  
  71.       - Go in the configuration editor (1st top left menu).
  72.  
  73.       - Click on an unused button (in the top bank).
  74.  
  75.       - and fill the following boxes:
  76.  
  77.             Button text:   Size  (or whatever name you fancy!)
  78.  
  79.             Function:      u     (lower case)
  80.  
  81.             Selection:     B     (Upper case)
  82.  
  83.             SpecialOp:     ,     (comma)
  84.  
  85.             Option:        p     (lower case)
  86.  
  87.             Arguments:     (full path and name for sizer, plus -n if you
  88.                            want more speed.
  89.                            Dont use 'Run >NIL:' or even 'Run' on its own)
  90.  
  91.       - Click on 'Quit and use'
  92.  
  93.       - Once back to DirWork, save the new configuration.
  94.  
  95.       - That's it!
  96.  
  97.       - Now pick any dir or file in one of the file lists, then click
  98.         on the 'Size' button. A  window  should  open and 'sizer' will
  99.         list all the files it is  'sizing'  and then display something
  100.         like this:
  101.  
  102.                Total number of files                 17
  103.                Total number of directories            1
  104.                Total number of bytes in files    101108
  105.                Total number of blocks used          207
  106.  
  107.                                Total occupied:   105984 bytes, 103K
  108.  
  109.       I wont explain the 1st line, for the second one, it includes the
  110.       directory(ies) you asked to be sized as well as all the sub-
  111.       directories and sub-sub-sub... directories if any.
  112.  
  113.       The 3rd line tells you the total number of bytes of all the files
  114.       and the 4th the total number of blocks all the files, directories,
  115.       subdirectories, sub-sub...directories occupy on their respective 
  116.       device.
  117.  
  118.       Suppose you have 'sized' a directory containing 10 files with
  119.       a size of 256 bytes each. The 3rd line will tell you 2560 bytes,
  120.       but the 4th might say 10 blocks (plus the blocks used by the
  121.       direcory itself). Suppose the  device  on  which those files are
  122.       kept have a block  size  of  512  bytes,  the  total  occupied 
  123.       will be 5120 bytes ( plus the ones used by the directory). 
  124.       
  125.       For each item it scans, 'sizer' looks at the block size of the 
  126.       containing device and calculate the occupied size accordingly. 
  127.       BTW, using sizer, I discovered that the  block  size  of the Ram:
  128.       device is actually 1024 bytes (with KickStart 37.175). Most other
  129.       devices, hard disks, floppies have a block size of 512 bytes, but
  130.       I heard (read!?) one might be able to change the block size with 
  131.       the new FastFileSystem......?!?!
  132.  
  133.  
  134.  
  135. Credits!
  136. ~~~~~~~~
  137.  
  138.       This little utility was written with GREAT help from an article by
  139.       Paul OVERAA published by Amiga Format in the december 1990 issue,
  140.       page 209+.
  141.  
  142.       It was written for myself, to help me file all the stuff I got
  143.       from the great Peter MILES ¤ , and also for
  144.                      \_________/               v
  145.                           ^        ;-)         |
  146.                           |____________________|
  147.  
  148.  
  149.     ¤ ICPUG Amiga library organiser.
  150.  
  151.       ICPUG is the one and only Independent Commodore Products Users Group.
  152.  
  153.       To become a member of this brilliant club contact:
  154.  
  155.       Jack COHEN, ICPUG Membership secretary, P.O. Box 1309,
  156.       LONDON, N3 2UT, (England), EUROPE.
  157.         
  158.    |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  159.    |  Send any bug report, compliment ;-), chocolates, freely distributable |
  160.    |  software, 1Gb hard disks, A3 48 bits colour scanners, brand new       |
  161.    |  AMIGA 4000, etc...                                                    |
  162.    |                                                                        |
  163.    |  OR SIMPLY A POST CARD! to:                                            |
  164.    |                                                                        |
  165.    |                       Gérard CORNU                                     |
  166.    |                       11 avenue Edouard Aynard                         |
  167.    |                       69130 ECULLY                                     |
  168.    |                                                                        |
  169.    |                       FRANCE                                           |
  170.    |                                                                        |
  171.    |                                                                        |
  172.    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  173.   
  174.   
  175.                                 Have a nice day!
  176.   
  177.   
  178.   
  179.   
  180.  
  181.  
  182.